﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jbe.TestSuite.Infrastructure.Interface;
using Jbe.Composite.Extensions;
using Jbe.TestSuite.Infrastructure.Interface.Documents;
using Jbe.TestSuite.RtfEditor.Domain;

namespace Jbe.TestSuite.RtfEditor.Applications
{
    internal class ModuleController
    {
        private readonly IApplicationContainer container;
        private readonly IDocumentManager documentManager;


        public ModuleController(IApplicationContainer container, IDocumentManager documentManager)
        {
            this.container = container;
            this.documentManager = documentManager;
        }


        public void Initialize()
        {
            documentManager.Register(container.Resolve<RichTextDocumentType>());
            documentManager.Register(container.Resolve<XpsExportDocumentType>());

            container.Resolve<DocumentController>().Initialize();
        }
    }
}
